linux/x86_64 2.6.18: remove orig_ist
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 5 Mar 2007 15:04:28 +0000 (15:04 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 5 Mar 2007 15:04:28 +0000 (15:04 +0000)
orig_ist is bound to presence of a TSS, hence is meaningless on Xen
kernels.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
linux-2.6-xen-sparse/arch/x86_64/kernel/init_task.c
linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/processor.h

index 86bc43b04679a09477962ec39526d5b97c2d0e70..e0bd1e50e777fbdafc56016151f543118c4be635 100644 (file)
@@ -47,11 +47,11 @@ EXPORT_SYMBOL(init_task);
  * on exact cacheline boundaries, to eliminate cacheline ping-pong.
  */ 
 DEFINE_PER_CPU(struct tss_struct, init_tss) ____cacheline_internodealigned_in_smp = INIT_TSS;
-#endif
 
 /* Copies of the original ist values from the tss are only accessed during
  * debugging, no special alignment required.
  */
 DEFINE_PER_CPU(struct orig_ist, orig_ist);
+#endif
 
 #define ALIGN_TO_4K __attribute__((section(".data.init_task")))
index 2ca8c14fafe3129bf5f2fcf8f6e309c4f561a360..794efcbcd95c05bb77ab0a61ae279d5859817a6c 100644 (file)
@@ -246,11 +246,13 @@ DECLARE_PER_CPU(struct tss_struct,init_tss);
 
 
 extern struct cpuinfo_x86 boot_cpu_data;
+#ifndef CONFIG_X86_NO_TSS
 /* Save the original ist values for checking stack pointers during debugging */
 struct orig_ist {
        unsigned long ist[7];
 };
 DECLARE_PER_CPU(struct orig_ist, orig_ist);
+#endif
 
 #ifdef CONFIG_X86_VSMP
 #define ARCH_MIN_TASKALIGN     (1 << INTERNODE_CACHE_SHIFT)